package com.sky.proxy.cglibProxy1;

/**
 * @author : wushikai
 * <p>
 * date : 2022-03-10
 */

import net.sf.cglib.proxy.MethodInterceptor;
import net.sf.cglib.proxy.MethodProxy;

import java.lang.reflect.Method;


public class DBQueryProxy2 implements MethodInterceptor {

    public Object intercept(Object o, Method method, Object[] objects, MethodProxy methodProxy) throws Throwable {
        System.out.println("Here in interceptor 2！");
        return methodProxy.invokeSuper(o, objects);
    }
}
